# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=libcsys
pkgver=4.4.1
pkgrel=1
pkgdesc="Library for managing drive and getting system resource information in real time"
arch="all"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="udisks2"
makedepends="
	qt5-qtbase-dev
	cmake
	samurai
	"
source="https://gitlab.com/cubocore/libcsys/-/archive/v$pkgver/libcsys-v$pkgver.tar.gz"
subpackages="$pkgname-dev"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
1436ed868ec378685dce2216bb2230f91d45b7fc4902b14537ef7842fc5b3f07526ead079bf21479e57fe6aa49956a46f8fcac243e0536bf3b618c10ee13d473  libcsys-v4.4.1.tar.gz
"
